import org.junit.Test;

import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;

public class DiamondTests {
    @Test
    public void shouldTestDrawingIsoscelesTriangle(){
        Diamond diamond = new Diamond();
        assertThat(diamond.drawIsoscelesTriangle(3),is("  *\n ***\n*****\n"));
    }
    @Test
    public void shouldTestDrawingADiamond(){
        Diamond diamond = new Diamond();
        assertThat(diamond.drawDiamond(3),is("  *\n ***\n*****\n"));
    }
    @Test
    public void shouldTestPrintingOfFizzBuzz(){
        Diamond diamond = new Diamond();
        assertThat(diamond.drawFizzBuzz(15),is("1\n2\nFizz\n4\nBuzz\nFizz\n7\n8\nFizz\nBuzz\n11\nFizz\n13\n14\nFizzBuzz\n"));
    }
}
